#include "monitostatew.h"
#include "ui_monitostatew.h"

MonitoStateW::MonitoStateW(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MonitoStateW)
{
    ui->setupUi(this);
}

MonitoStateW::~MonitoStateW()
{
    delete ui;
}

void MonitoStateW::setTextInfo(QString centerPicStyle, QString TopPicStyle, QString topName, QString bottomName)
{

   if(bottomName == "作业完成")
   {
        ui->labelStateTop->setText("已生产:");
        ui->labelStateTop->setMinimumWidth(52);
   }else{
        ui->labelStateTop->setStyleSheet(TopPicStyle);
   }
   ui->labelPicCenter->setStyleSheet(centerPicStyle);

   ui->labelTopName->setText(topName);
   ui->labelBottomName->setText(bottomName);
}
